package com.example.demo.login.loginservice.impl;

import com.example.demo.login.loginbean.User;
import com.example.demo.login.loginmapper.UserMapper;
import com.example.demo.login.loginservice.LoginService;
import com.example.demo.utils.ResultJson;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Auther: mengxianwei
 * @Date: 2021/01/06/10:07 AM
 * @Description:
 */
@Service
public class LoginServiceImpl implements LoginService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public ResultJson getLoginInfo(User user) {
      User user1  =userMapper.selectByPrimaryKey(user.getId());
        ResultJson resultJson=new ResultJson();
        resultJson.setData(user1);
        return resultJson;
    }
}
